Skip to content

tests: remove hardcoded packages in system.sh#17301

Merged
parthea merged 6 commits into
mainfrom
remove-hardcoded-packages-system-sh
May 28, 2026
Merged

tests: remove hardcoded packages in system.sh#17301
parthea merged 6 commits into
mainfrom
remove-hardcoded-packages-system-sh

Conversation

@parthea
Copy link
Copy Markdown
Contributor

@parthea parthea commented May 28, 2026

This PR removes the hardcoded list of packages in .kokoro/system.sh , to determine whether system tests should run, which is error prone. For example, google-cloud-bigquery was missing from the list so system tests would only run in release PRs.

@parthea parthea requested a review from a team as a code owner May 28, 2026 21:05
@parthea parthea requested review from a team as code owners May 28, 2026 21:06
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors .kokoro/system.sh to dynamically determine which packages require full system tests by reading the library_type from each package's .repo-metadata.json file, replacing a hardcoded list of packages. Feedback on the changes highlights a portability issue with using grep -oP to parse the JSON metadata, suggesting a more robust sed alternative to ensure compatibility across different environments.

Comment thread .kokoro/system.sh Outdated
@parthea parthea requested review from shuoweil and removed request for a team May 28, 2026 21:06
parthea and others added 4 commits May 28, 2026 17:09
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@parthea parthea merged commit 025a487 into main May 28, 2026
31 checks passed
@parthea parthea deleted the remove-hardcoded-packages-system-sh branch May 28, 2026 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants